/**
* Copyright @ 2023 iAuto (Shanghai) Co., Ltd.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are NOT permitted except as agreed by
* iAuto (Shanghai) Co., Ltd.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/


// @import (reference) '~antd/es/style/themes/index';

html,
body,
#root,
#root > div {
  height: 100%;
  overflow: hidden;
}

#root > div {
  overflow-x: scroll;
}

.ant-modal-wrap,
.ant-modal-mask,
.ant-picker-dropdown {
  z-index: 99999;
}

.editWrapper {
  // position: absolute;
  // top: 0;
  // right: 0;
  // bottom: 0;
  // left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 860px;
}

.pd0 {
  :global {
    .ant-card {
      .ant-card-body {
        padding: 0 !important;
      }
    }
  }
}

.editContainer {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 1;
  // min-width: 1280px;
  min-width: 100%;
  height: 100%;
}

.fullScreen {
  position: fixed;
  bottom: 0px;
  left: 0px;
  z-index: 900;
  width: 100%;
  height: calc(100% - 48px);
}

.fullScreenCtrl {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 901;
  background: rgba(242, 247, 251, 0.76);
  // background: white;
  background: rgba(242, 247, 251, 0.76);
  border: 1px solid #ffffff;
  border-radius: 6px;
  // box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.18);

  &:not(.unity) {
    left: 20px;
    height: calc(100% - 542px);
    margin-top: 540px;
  }
}

.showControl {
  position: absolute;
  top: 100px;
  right: 30px;
  z-index: 10;
  height: 30px;
  padding: 0 10px;
  color: #fff;
  line-height: 30px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.3rem;
  cursor: pointer;
}

.fullScreenBlock {
  position: relative;
  display: flex;
  flex: 1;
  background: rgba(242, 247, 251, 0.76);
  border: 1px solid #ffffff;
  border-radius: 6px;
  // box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.18);

  // > div {
  //   display: flex;
  //   flex: 1;
  // }
}

.unfullScreenBlock {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 9001;
  width: 600px;
  height: 440px;
  overflow: hidden;
  border-radius: 10px;

  // > div {
  //   position: absolute;
  //   top: 0;
  //   left: calc(0px - var(--toolbox-width));
  //   width: calc(600px + var(--toolbox-width));
  //   height: 100%;
  // }
}

.previewTitle {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 9002;
  width: 600px;
  height: 440px;
  padding: 20px;
  color: #303133;
  font-weight: 400;
  font-size: 18px;
  // background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  user-select: none;
}
